package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;

public interface MenuDao {
    public Page<Menu> findPage(String queryString);
    public List<String> findTopLevel();
    public void add1(Menu menu);
    public void add2(Menu menu);
    public Menu findChildById(Integer id);
    public void delete(Integer id);
    public void deletezhongjian(Integer id);
    public Integer findUserIdByUsername(String username);
    public List<Integer> findRolesIdById(Integer id);
    public  List<Integer> findMenuIdsByRoleId(Integer id);
    public Menu findMenuById(Integer id);
    public Integer findParentIdByParentName(String name);
    public Integer checkParentMenu(Integer id);
    public String findParentNameById(Integer id);
    public String findNameById(Integer id);
    public Menu findById(Integer id);
    public void edit(Menu menu);
}
